package com.dc.dao;

import com.dc.entity.ShipRepairEntity;
import com.dc.entity.WorkflowShipWeldEntity;
import com.dc.entity.WorkflowTowShipOilEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface WorkflowShipWeldDao extends JpaRepository<WorkflowShipWeldEntity, Long>, JpaSpecificationExecutor<WorkflowShipWeldEntity> {

    Page<WorkflowShipWeldEntity> findByShipRepairEntity(ShipRepairEntity shipRepair, Pageable pageable);

    List<WorkflowShipWeldEntity> findByShipRepairEntity(ShipRepairEntity shipRepair);
}
